const mongoose = require('mongoose');

const counterSchema = new mongoose.Schema({
  _id: { type: String, required: true }, // 序列名称 (如: 'userId')
  seq: { type: Number, default: 0 }      // 当前序列值
});

module.exports = mongoose.model('Counter', counterSchema);